import { createApp } from "vue";
import store from "@/stores"; //pinia
import "@/assets/styles/reset.scss"; //初始化样式
import "@/assets/styles/index.scss"; //全局样式
import "@/assets/styles/element-ui-rewrite.scss"; //ui组件样式重写
import "amfe-flexible"; //屏幕分十份，设置html字体大小
import "virtual:svg-icons-register"; //svg需要引入的样式
import ElementPlus from "element-plus"; //组件库
import "element-plus/dist/index.css"; //组件库样式
import App from "./App.vue"; //根组件
import router from "./router"; //路由
import zhCn from "element-plus/dist/locale/zh-cn.mjs";

import Pagination from "./components/Pagination.vue"; //全局注册组件
import Dialog from "./components/Dialog.vue"; //全局注册组件
import "./router/config"; //权限
const app = createApp(App);

app.use(ElementPlus, {
  locale: zhCn,
});
app.component("Pagination", Pagination);
app.component("Dialog", Dialog);
app.use(router).use(store).mount("#app");
